<div class="modal fade zanpian-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display:none;">
  <div class="modal-dialog clearfix">
    <div class="modal-content clearfix">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <div class="zanpian-modal-tabs">
          <ul id="myTab">
          <li class="active"><a href="#tab_login" data-toggle="tab">用户登录</a><li>
          <li><a href="#tab_reg" data-toggle="tab">用户注册</a></li>
          </ul>
         </div>
      </div>
      <div class="modal-body">
      <div class="modal-body-tab active in" id="tab_login">
        <form class="form-horizontal" id="login-form" method="post" role="form" onsubmit="return false;">
          <div class="form-group">
           <span for="user_name" class="col-md-3 control-label hidden-xs pr-0">用户:</span>
            <div class="col-md-6 col-xs-12">
              <input class="form-control txt" name="user_name" id="user_name" type="text" placeholder="用户名或邮箱或手机">
            </div>
          </div>
          <div class="form-group">
          <span for="password" class="col-md-3 control-label hidden-xs pr-0">密码:</span>
            <div class="col-md-6 col-xs-12">
              <input class="form-control txt" name="user_password" id="user_password" type="password" placeholder="您的密码">
            </div>
          </div>
           {notempty name="GLOBALS['config']['user']['sys']['user_verify']"}
           <div class="form-group">
           <span for="validate" class="col-md-3 control-label hidden-xs pr-0">验证码:</span>
            <div class="col-md-3 col-xs-6">
              <input class="form-control txt" data="validate" name="validate" type="text" placeholder="验证码">
            </div>
              <div class="col-md-3 col-xs-3 p-0"><span id="validate-zanpian"><label><img class="validate-img" src="{:url('home/verify/index',array('t'=>time()))}"></label></span></div>
          </div> 
          {/notempty}  
            <div class="form-group">
            <div class="col-md-3"></div>
            <div class="col-md-6 col-xs-12">
            <input type="checkbox" name="cookietime" id="cookietime" checked="checked" value="2592000" />
            <input type="hidden" name="notforward" id="notforward" value="1">
            <input  type="hidden" name="dosubmit" id="dosubmit" value="1">记住我的登录 </label>
            <label><a rel="nofollow" href="{:zanpian_user_url('user/login/forgetpwd')}" target="_blank" class="text-color"> 忘记密码？ </a></label> 
            </div>
          </div>       
          <div class="form-group">
          <div class="col-md-3 col-xs-12"></div>
            <div class="col-md-6 col-xs-12"><button type="button" class="btn btn-success btn-block" id="login-submit">登录</button></div>
          </div>
          </form>
          </div>
       <div class="modal-body-tab fade" id="tab_reg">
    <form class="form-horizontal" id="reg-form" method="post" role="form" onsubmit="return false;">
          <div class="form-group">
          <span for="user_name" class="col-md-3 control-label hidden-xs pr-0">用户:</span>
             <div class="col-md-6 col-xs-12">
              <input class="form-control txt" name="user_name" id="user_name" type="text" placeholder="用户名">
            </div>
          </div>               
          <div class="form-group">
          <span for="user_password" class="col-md-3 control-label hidden-xs pr-0">密码:</span>
            <div class="col-md-6 col-xs-12">
              <input class="form-control txt" name="user_password" id="user_password" type="password" placeholder="密码">
            </div>
          </div>          
          {notempty name="GLOBALS['config']['user']['sys']['user_reg_sms']"}
          <input value="reg" name="type"  type="hidden"> 
          <input value="mobile" name="ac"  type="hidden">
           <div class="form-group">
          <span for="user_mobile" class="col-md-3 control-label hidden-xs pr-0">手机:</span>
            <div class="col-md-6 col-xs-12">
              <input class="form-control txt" name="to" id="to" type="text" placeholder="手机号码">
              <input type="button" id="send" class="btn btn-success" value="获取验证码" style="border-radius:0;cursor:pointer; position:absolute; right:15px;top:0">
            </div>
          </div>  
            <div class="form-group">
           <span for="validate" class="col-md-3 control-label hidden-xs pr-0">手机验证码:</span>
            <div class="col-md-3 col-xs-6">
              <input class="form-control txt"  data="code" name="code" type="text" placeholder="验证码">
            </div>
          </div>
          {else /}
            {notempty name="GLOBALS['config']['user']['sys']['user_reg_email']"} 
           <input value="reg" name="type"  type="hidden"> 
          <input value="email" name="ac"  type="hidden">            
          <div class="form-group">
          <span for="user_email" class="col-md-3 control-label hidden-xs pr-0">邮箱:</span>
            <div class="col-md-6 col-xs-12">
              <input class="form-control txt" name="to" id="to" type="text" placeholder="邮箱">
            </div>
          </div> 
          {/notempty}  
           {notempty name="GLOBALS['config']['user']['sys']['user_verify']"}
           <div class="form-group">
           <span for="validate" class="col-md-3 control-label hidden-xs pr-0">验证码:</span>
            <div class="col-md-3 col-xs-6">
              <input class="form-control txt" data="validate" name="validate" type="text" placeholder="验证码">
            </div>
              <div class="col-md-3 col-xs-3 p-0"><span id="validate-zanpian"><label><img class="validate-img" src="{:url('home/verify/index',array('t'=>time()))}"></label></span></div>
          </div> 
          {/notempty}                             
           {/notempty}                     
          <input value="1" name="agreement"  type="hidden">             
          <div class="form-group">
          <div class="col-md-3 col-xs-12"></div>
          <div class="col-md-6 col-xs-12">
           <button type="button" class="btn btn-success btn-block" id="reg-submit">注册</button>
           </div>
          </div>
          </form> 
          </div>         
          <div class="modal-body clearfix">
          <div class="col-md-3 col-xs-12"></div>
          <div class="col-md-6 col-xs-12">
          <div class="login-ico">
          <a class="qq pull-left" rel="nofollow"  {notempty name="GLOBALS['config']['user']['api']['qq_appid']"}{notempty name="GLOBALS['config']['user']['api']['auth']"} href="{:zanpian_user_url('user/snslogin/qq')}" target="_self"{else/}id="addsns" data-id="qq"{/notempty}{/notempty}><i class="icon iconfont">&#xe73e;</i></a>

          <a class="weixin" rel="nofollow" {notempty name="GLOBALS['config']['user']['api']['weixin_appid']"}{notempty name="GLOBALS['config']['user']['api']['auth']"} href="{:zanpian_user_url('user/snslogin/weiqrcode')}" target="_self"{else/}id="addsns" data-id="weiqrcode"{/notempty}{/notempty}><i class="icon iconfont">&#xe73b;</i></a>
          
          <a class="weibo pull-right" rel="nofollow" {notempty name="GLOBALS['config']['user']['api']['weibo_appid']"}{notempty name="GLOBALS['config']['user']['api']['auth']"} href="{:zanpian_user_url('user/snslogin/weibo')}" target="_self"{else/}id="addsns" data-id="weibo"{/notempty}{/notempty}><i class="icon iconfont">&#xe73c;</i></a>
</div> </div>
          </div>
          </div>
        </div>
         </div>
      </div>
    <!-- /.modal-content -->
  </div>
  <!-- /.modal -->